var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [{
			colkey : "pfinishtime",
			name : "生产完成时间",
			renderData : function(rowindex, data, rowdata, column) {
				return new Date(data).format("yyyy-MM-dd hh:mm:ss");
			}
		}, {
			colkey : "warehouse",
			name : "仓位"
		}, {
			colkey : "cname",
			name : "客户"
		}, {
			colkey : "now_mold_encode",
			name : "模具号码"
		}, {
			colkey : "oname",
			name : "产品名称"
		}, {
			colkey : "number",
			name : "生产数量"
		}, {
			colkey : "packNum",
			name : "包数"
		}, {
			colkey : "remark",
			name : "备注"
		} ],
		jsonUrl : rootPath
				+ '/enterstorage_notice/enterstorage_notice_findByPage.shtml',
		dymCol : true,
		checkbox : true,
		serNumber : false
	});
	$("#search").click("click", function() {//  绑定查询按扭

		var searchParams = $("#searchForm").serializeJson();
		grid.setOptions({
			data : searchParams
		});
	});

});

